package ec.edu.ucacue.siop.modelo.contEstProc;

import java.io.Serializable;
import java.util.Calendar;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import ec.edu.ucacue.siop.modelo.recurso.VariableAlimentacion;
import ec.edu.ucacue.siop.modelo.recurso.VariableCalidad;
import ec.edu.ucacue.siop.modelo.recurso.VariableProceso;

/**
 * 
 * @author echacon
 * Almacena la covarianza de dos variables particulares.
 * 
 */
@Entity
@Table(name="covarianza")
public class Covarianza implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id @GeneratedValue
	private long id;
	@ManyToOne
	private VariableCalidad varCal1;
	@ManyToOne
	private VariableCalidad varCal2;
	@ManyToOne
	private VariableProceso varPro1;
	@ManyToOne
	private VariableProceso varPro2;
	@ManyToOne
	private VariableAlimentacion varAl1;
	@ManyToOne
	private VariableAlimentacion varAl2;
	private double correlacion;
	private double corPearson;
	private long nroVar;
	private Calendar fi;
	private Calendar ff;
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public VariableCalidad getVarCal1() {
		return varCal1;
	}
	public void setVarCal1(VariableCalidad varCal1) {
		this.varCal1 = varCal1;
	}
	public VariableCalidad getVarCal2() {
		return varCal2;
	}
	public void setVarCal2(VariableCalidad varCal2) {
		this.varCal2 = varCal2;
	}
	public VariableProceso getVarPro1() {
		return varPro1;
	}
	public void setVarPro1(VariableProceso varPro1) {
		this.varPro1 = varPro1;
	}
	public VariableProceso getVarPro2() {
		return varPro2;
	}
	public void setVarPro2(VariableProceso varPro2) {
		this.varPro2 = varPro2;
	}
	public VariableAlimentacion getVarAl1() {
		return varAl1;
	}
	public void setVarAl1(VariableAlimentacion varAl1) {
		this.varAl1 = varAl1;
	}
	public VariableAlimentacion getVarAl2() {
		return varAl2;
	}
	public void setVarAl2(VariableAlimentacion varAl2) {
		this.varAl2 = varAl2;
	}
	public double getCorrelacion() {
		return correlacion;
	}
	public void setCorrelacion(double correlacion) {
		this.correlacion = correlacion;
	}
	public double getCorPearson() {
		return corPearson;
	}
	public void setCorPearson(double corPearson) {
		this.corPearson = corPearson;
	}
	public long getNroVar() {
		return nroVar;
	}
	public void setNroVar(long nroVar) {
		this.nroVar = nroVar;
	}
	public Calendar getFi() {
		return fi;
	}
	public void setFi(Calendar fi) {
		this.fi = fi;
	}
	public Calendar getFf() {
		return ff;
	}
	public void setFf(Calendar ff) {
		this.ff = ff;
	}
	
}
